# 创建字符串
from traceback import print_tb

s1 = 'hello'

print(s1)

s2 = "hello"

print(s2)

s3 = '''20124
hello
world'''

print(s3)

s4 = "It's a hat"
print(s4)

s5 = '1234\'\"666'
print(s5)

# 字符串拼接
print(s1 + s3)

n = 5
# print(s1 + n) #注意：字符串与数字不能相加

# 字符串乘法
print('-------字符串乘法----------')
print(s1 * 2) # hellohello

print('*' * 20)
print('@' * 20)
print(3 * 'happy')

str1 = 'hello,world'
print(str1[5])
